import {IRoutesBase} from "./index";
import React from "react";
import {HomeOutlined} from '@ant-design/icons';

export interface MenuBase extends IRoutesBase {

    /**
     * 图标组件
     * @see https://ant.design/components/icon-cn/
     */
    iconComponent?: React.FC<any> | React.ElementType;

}

export interface Menu extends MenuBase {

    /**
     * 子级路由
     */
    subs?: Menu[];
}


/**
 * 管理端路由配置
 */
const manageMenus: { menus: Menu[]; others: Menu[] | []; [index: string]: any; } = {
    // 菜单相关路由
    menus: [
        {
            path: '/manage/home',
            title: '首页',
            iconComponent: HomeOutlined,
            component: 'Home',
            requireLogin: true,
        },
    ],
    // 非菜单相关路由
    others: [],
};

export default manageMenus;
